<%@ page import="com.dbb.entity.order.OrderItem" %>



<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'unitPrice', 'error')} required">
	<label for="unitPrice">
		<g:message code="orderItem.unitPrice.label" default="Unit Price" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="unitPrice" value="${fieldValue(bean: orderItemInstance, field: 'unitPrice')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'totalPairs', 'error')} required">
	<label for="totalPairs">
		<g:message code="orderItem.totalPairs.label" default="Total Pairs" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="totalPairs" type="number" value="${orderItemInstance.totalPairs}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'ctns', 'error')} required">
	<label for="ctns">
		<g:message code="orderItem.ctns.label" default="Ctns" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="ctns" name="ctns.id" from="${com.dbb.entity.shipment.Ctn.list()}" optionKey="id" required="" value="${orderItemInstance?.ctns?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'desc', 'error')} ">
	<label for="desc">
		<g:message code="orderItem.desc.label" default="Desc" />
		
	</label>
	<g:select name="desc" from="${com.dbb.entity.order.ItemComment.list()}" multiple="multiple" optionKey="id" size="5" value="${orderItemInstance?.desc*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'frontMark', 'error')} ">
	<label for="frontMark">
		<g:message code="orderItem.frontMark.label" default="Front Mark" />
		
	</label>
	<g:textField name="frontMark" value="${orderItemInstance?.frontMark}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'product', 'error')} required">
	<label for="product">
		<g:message code="orderItem.product.label" default="Product" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="product" name="product.id" from="${com.dbb.entity.Product.list()}" optionKey="id" required="" value="${orderItemInstance?.product?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: orderItemInstance, field: 'sideMark', 'error')} ">
	<label for="sideMark">
		<g:message code="orderItem.sideMark.label" default="Side Mark" />
		
	</label>
	<g:textField name="sideMark" value="${orderItemInstance?.sideMark}"/>
</div>

